package com.shelpe.services.sinbad.repository.jpa;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.shelpe.services.sinbad.entity.jpa.MobileAdgroupDetail;
import com.shelpe.services.sinbad.entity.jpa.MobileAdgroupDetail.Status;

public interface MobileAdgroupRespository extends PagingAndSortingRepository<MobileAdgroupDetail,Long>{
	
	List<MobileAdgroupDetail> findByUserID(long userID);
	
	List<MobileAdgroupDetail> findByCampaignIDAndStatus(long campaignID,Status status);
	
	List<MobileAdgroupDetail> findByAdgroupIDAndStatus(long adgroupID,Status status);
}
